﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
using MYData.Entity.DomainModels;
using MYData.Entity.SystemModels;

namespace MYData.Entity.Project
{
    [Table("Tb_Project_Department")]
    public class Tb_Project_Department : BaseEntity
    {
        [Key]
        [Display(Name = "部门Id")]
        [Column(TypeName = "nvarchar(64)")]
        [Required(AllowEmptyStrings = false)]
        public string id { get; set; } = new Snowflake.Core.IdWorker(1, 1).NextId().ToString();
        [Display(Name = "部门名称")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string departmentName { get; set; }
        [Display(Name = "部门编号")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string departmentNum { get; set; }
        [Display(Name = "父级Id")]
        [Column(TypeName = "nvarchar(64)")]
        [Required(AllowEmptyStrings = false)]
        public string parentId { get; set; }
    }
}
